cmake_minimum_required(VERSION 3.16)

project(VideoDeeper VERSION 0.1 LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set (CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};/Users/nejmi/Qt/6.3.0/macos")
set(CMAKE_PREFIX_PATH "${CMAKE_PRFIX_PATH};/home/dream-lab/Qt/6.3.0/gcc_64/")
find_package(Qt6 6.2 COMPONENTS Quick REQUIRED)

qt_add_executable(appVideoDeeper
    src/main.cpp
#    src/UI/Components/FontAwesome/Fonts/Fonts.qrc
)

qt_add_qml_module(appVideoDeeper
    URI VideoDeeper
    VERSION 1.0
    QML_FILES
      src/main.qml
      src/UI/Pages/VideoPage.qml
      src/UI/Pages/VideoPage/TasksPage.qml
      src/UI/Pages/AboutPage.qml
      src/UI/Pages/AboutPage/AboutUs.qml
      src/UI/Pages/AboutPage/AboutSoftware.qml
      src/UI/Components/FontAwesome/FAFontLoader.qml
      src/UI/Components/FontAwesome/FAIcon.qml
    RESOURCES
      src/UI/Components/FontAwesome/Fonts/fa-brands-400.ttf
      src/UI/Components/FontAwesome/Fonts/fa-regular-400.ttf
      src/UI/Components/FontAwesome/Fonts/fa-solid-900.ttf
)

set_target_properties(appVideoDeeper PROPERTIES
    MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
)

target_compile_definitions(appVideoDeeper
    PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(appVideoDeeper
    PRIVATE Qt6::Quick)

